﻿@model ProjectManagement.Domain.Entities.Role

@{
    ViewBag.Title = "DetailsRole";
	Layout = null;
}

<span>角色信息</span>
<link href="@Url.Content("~/Content/table.css")" rel="stylesheet" type="text/css" />
<table width="100%" id="mytab"  border="1" class="t1">
	<tr>
		<th class="ths">角色名称</th>
	</tr>
	<tr class="a1">
		<td>@Html.DisplayFor(model => model.Name)</td>
	</tr>
	<tr>
		<th class="ths">角色描述</th>
	</tr>
	<tr class="al">
		<td>@Html.DisplayFor(model => model.Description)</td>
	</tr>
</table>
		<div >
			<span>拥有的权限权限列表</span>
			<hr />
			@{
				if (ViewBag.Permission.Count>0)
				{
					foreach(var item in ViewBag.Permission)
					{
						if(item.MainMenu)
						{
						<p>@item.Name:</p>
						}
						else
						{
							@item.Name
						}
					}
				}
			}
		</div>
		<hr />
<p>
    @Html.ActionLink("返回列表", "RoleList")
</p>
